package cn.bulibuqi.myblog.service;

import cn.bulibuqi.myblog.bean.Type;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.awt.print.Pageable;
import java.util.List;

/**
 * @author bulibuqi
 * @create 2021-12-21:52
 */
public interface TypeService {

    boolean saveType(Type type);

    Type getType(Long id);

    Page<Type> listType(Page pageInfo);

    boolean updateType(Long id,Type type);

    void deleteType(Long id);

    Type getTypeByName(String name);

    List<Type> listType();
}
